package com.eshop.modules.order.service.dto;

import com.eshop.modules.cart.vo.StoreCartQueryVo;
import java.util.List;
import java.io.Serializable;

public class CacheDto implements Serializable
{
    private List<StoreCartQueryVo> cartInfo;
    private PriceGroupDto priceGroup;
    private OtherDto other;
    
    public List<StoreCartQueryVo> getCartInfo() {
        return this.cartInfo;
    }
    
    public PriceGroupDto getPriceGroup() {
        return this.priceGroup;
    }
    
    public OtherDto getOther() {
        return this.other;
    }
    
    public void setCartInfo(final List<StoreCartQueryVo> cartInfo) {
        this.cartInfo = cartInfo;
    }
    
    public void setPriceGroup(final PriceGroupDto priceGroup) {
        this.priceGroup = priceGroup;
    }
    
    public void setOther(final OtherDto other) {
        this.other = other;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof CacheDto)) {
            return false;
        }
        final CacheDto other = (CacheDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$cartInfo = this.getCartInfo();
        final Object other$cartInfo = other.getCartInfo();
        Label_0065: {
            if (this$cartInfo == null) {
                if (other$cartInfo == null) {
                    break Label_0065;
                }
            }
            else if (this$cartInfo.equals(other$cartInfo)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$priceGroup = this.getPriceGroup();
        final Object other$priceGroup = other.getPriceGroup();
        Label_0102: {
            if (this$priceGroup == null) {
                if (other$priceGroup == null) {
                    break Label_0102;
                }
            }
            else if (this$priceGroup.equals(other$priceGroup)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$other = this.getOther();
        final Object other$other = other.getOther();
        if (this$other == null) {
            if (other$other == null) {
                return true;
            }
        }
        else if (this$other.equals(other$other)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof CacheDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $cartInfo = this.getCartInfo();
        result = result * 59 + (($cartInfo == null) ? 43 : $cartInfo.hashCode());
        final Object $priceGroup = this.getPriceGroup();
        result = result * 59 + (($priceGroup == null) ? 43 : $priceGroup.hashCode());
        final Object $other = this.getOther();
        result = result * 59 + (($other == null) ? 43 : $other.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "CacheDto(cartInfo=" + this.getCartInfo() + ", priceGroup=" + this.getPriceGroup() + ", other=" + this.getOther() + ")";
    }
}
